package com.sakura.pattern.pipelinePattern;/**
 * Created by apple on 2019/4/22.
 */

/**
 * @author jixd
 * @Description TODO
 * @Date 2019/4/22 11:00 AM
 * @Version 1.0
 **/
public class BasicValve implements Valve {
    protected Valve next = null;
    public Valve getNext() {
        return next;
    }
    public void invoke(String handling) {
         handling=handling.replaceAll("aa", "bb");
        System.out.println("基础阀门处理完后：" + handling);
    }
    public void setNext(Valve valve) {
        this.next = valve;
    }
}
